<?php
$js_array= array(
        'jquery/jqgrid/src/grid.loader.js',
    	'jquery/jqgrid/src/i18n/grid.locale-en.js',
	'jquery/jqgrid/js/jquery.jqGrid.min.js',
	'jquery/validate/jquery.validate.js',
	'announcement.js',
);

$css_array = array(
        'jquery/ui.jqgrid.css',
);

$vars = 'var user_type = "'._session('user_type').'"';
get_backend_header($js_array, $css_array, $vars);

?>



<div class="line">
	<h2 class="unit title">Announcements</h2>
	<div class="unitExt" style="margin-top: 25px;">
            <?php if (_session('user_type') == 'admin') { ?>
                <a href="<?php echo site_url('announcement/add'); ?>" id="add" name="add">New Announcements</a>
            <?php } ?>
	</div>
</div>

<?php get_message();?>
    <table id="announcementGrid" class="scroll"></table>
    <div id="pagination" class="scroll"></div>

<script type="text/javascript">
    announcementGrid();
    $('#add').button({
        icons: {primary: 'ui-icon-plus'}
    });

</script>


<?php get_backend_footer();

/* End of file list.php */
/* Location: ./application/views/announcement/list.php */

